package translationModels;

import java.util.ArrayList;

public class QParam {

	private int j;
	private int i;
	private int l;
	private int m;

	public QParam(int j, int i, int l, int m)
	{
		this.j=j;
		this.i=i;
		this.l=l;
		this.m=m;
	}
	
	@Override
	public int hashCode() {
		return j ^ i ^ l ^ m;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof QParam))
			return false;
		QParam casted = (QParam)obj;
		return ((this.i==casted.i) && (this.j==casted.j) && (this.l==casted.l) && (this.m==casted.m));
	}
	
	public ArrayList<Integer> toArrayList()
	{
		ArrayList<Integer> list = new ArrayList<Integer>();
		list.add(j);
		list.add(i);
		list.add(l);
		list.add(m);
		return list;
	}

	public ArrayList<Integer> getILMList() 
	{
		ArrayList<Integer> sublist = new ArrayList<Integer>();
		sublist.add(i);
		sublist.add(l);
		sublist.add(m);
		return sublist;
	}
}
